<template>
        <div class="cen">
            <div class="top">
                <div class="top-top">
                    <img src="@/assets/12-10/1.png" alt="">
                </div>
            </div>
            <div class="main">
                <div class="main-text">
                    <p>点击以下按钮开始测试</p>
                </div>
                <div class="main-btn">
                    <div class="main-btn1">
                        <button @click="fa">
                         中国共产党章程
                        </button>  
                    </div>
                    <div class="main-btn2">
                        <button @click="fb">
                        中国共产党处分纪律条例
                        </button>
                    </div>
                </div>
            </div>
        </div>
</template>
<script>
export default {
    methods:{
        fa(){
            this.$emit("son","Son1")
        },
        fb(){
            this.$emit("son","Son2")
        }
    }
}
</script>
<style scoped>
*{
    margin: 0;
    padding: 0;
}
.cen {
    width:640px;
    height: 1000px;
    margin: auto;
    background: url("C:/Users/14129/Documents/web1906vue/webvue/src/assets/12-10/01.png");
}
.top {
    padding-top: 164px;
    width:100%;
}
/* .top-top h1 {
    color:white;
    padding: 30px;
    text-align: left;
}
.top-top h2 {
    text-align:center;
    font-family: "宋体";
    font-size: 45px;
    padding-top: 70px;
    padding-bottom: 50px;
} */

/* main */
.main-text {
    padding: 50px 0px 30px;
}
.main-text p {
    text-align: center;
    font-size: 25px;
    font-family: "宋体";
    color: white;
}

.main-btn {
    width: 100%;
}
.main-btn div button {
    width: 80%;
    margin: auto;
    background: rgb(254,198,31);
    color: white;
    display: block;
    height: 80px;
    font-size: 30px;
    border-radius: 25px;
    padding-bottom: 30px;
}
.main-btn1 {
    padding: 40px;
}
.main-btn2 {
    padding-bottom:50px ;
}

</style>